<template>
    <div class="question_box">
        <div class="project_title">
            <li class="project_left">
                <p>调查问卷
                    <sub>/Questionnaire</sub>
                </p>

                <img class="icon1" src="@/assets/home/icon1.png" alt="">
                <img class="icon2" src="@/assets/home/icon2.png" alt="">
            </li>
        </div>
        <div class="question_bottom">
            <p>口腔医学专业教学资源库调查问卷</p>
            <span>亲爱的使用者，您好！</span><br>
            <span>非常感谢您使用口腔医学专业教学资源库网站。请您花几分钟的宝贵时间填写这份问卷，您的宝贵意见和诚挚建议将有助于我们及时了解教学需求、修订教学素材、完善资源库内容和网站建设，感谢您的大力支持！</span><br>
            <span>本调查旨在了解高等职业教育教学中教学资源的使用情况，您反馈的信息我们会保密，且只作统计之用。感谢您的积极参与！</span>
            <li>
                <button v-for="(item,index) in industryList" @click="godetail(item.content)">{{ item.title }}</button>
            </li>
        </div>
    </div>
</template>

<script setup>
import axios from "axios";
import { onBeforeMount ,ref} from "vue";
const industryList =ref([])
onBeforeMount(()=> {
    industryF()
})
const godetail = (url)=> {
    window.open(url);
}
const industryF = ()=> {
	axios({
            url: '/Article/getlist',
            baseURL: 'http://kaoshiguanli.haimijiaoyu.com/api/',
            method: 'post',
			data:{cate_id:338}
        }).then(res => {
			industryList.value = res.data.list
            console.log(res.data.list,"行业动态")
        })
}
</script>

<style lang="scss" scoped>
@media screen and (min-width:1200px) {
    .question_box {
        width: 100%;
        padding: 60px 0;
        background-color: #FAFAFA;
        .question_bottom{
            width: 1000px;
            margin: 0 auto;
            margin-top: 50px;
            background-color: #FFFFFF;
            padding: 50px 40px;
            p{
                width: 920px;
                text-align: center;
                font-size: 30px;
                font-weight: 600;
                color: #1CABD9;
                margin-bottom: 40px;
            }
            span{
                width: 920px;
                font-size: 14px;
                font-weight: 400;
                color: #333333;
                line-height: 28px;
                text-indent:2em;
                display: block;
            }
            span:nth-child(2){
                text-indent:inherit!important;
            }
            li{
                width: 920px;
                display: flex;
                justify-content: space-around;
                button{
                    padding: 15px 30px;
                    font-size: 16px;
                    margin-top: 60px;
                    background: #FF9933;
                    box-shadow: 0px 0px 4px 4px rgba(0,0,0,0.03);
                    border-radius: 10px 10px 10px 10px;
                    color: #FFFFFF;
                    border: none;
                    cursor: pointer;
                }
            }
        }
    }

    .project_title {
        display: flex;
        width: 1000px;
        margin: 0 auto;
        justify-content: space-between;
        align-items: center;

        .project_left {
            height: 60px;
            border-radius: 8px 0 0 8px;
            color: #FFFFFF;
            display: flex;
            align-items: center;
            position: relative;
            background-color: #1CABD9;

            p {
                padding-left: 20px;
                position: relative;
                z-index: 5;
                font-size: 30px;
            }

            sub {
                position: relative;
                z-index: 5;
                font-size: 12px;
                bottom: 5px;
            }

            .icon1 {
                // width: 343px;
                position: absolute;
                height: 60px;
                right: -50px;
                bottom: 0;
            }

            .icon2 {
                width: 120px;
                position: absolute;
                height: 40px;
                bottom: -9px;
                right: -76px;
            }
        }
    }
}

@media screen and (max-width: 1200px) {
    .question_box {
        width: 100%;
        padding: 4vw 0;
        background-color: #FAFAFA;
        min-height: 61.5vh;
        .question_bottom{
            width: 90vw;
            margin: 0 auto;
            margin-top: 5vw;
            background-color: #FFFFFF;
            padding: 5vw 3vw;
            p{
                width: 84vw;
                text-align: center;
                font-size: 4vw;
                font-weight: 600;
                color: #1CABD9;
                margin-bottom: 4vw;
            }
            span{
                width: 84vw;
                font-size: 1.8vw;
                font-weight: 400;
                color: #333333;
                line-height: 4vw;
                text-indent:2em;
                display: block;
            }
            span:nth-child(2){
                text-indent:inherit!important;
            }
            li{
                width: 84vw;
                display: flex;
                justify-content: space-around;
                button{
                    padding: 1vw 2vw;
                    font-size: 2.1vw;
                    margin-top: 4vw;
                    background: #FF9933;
                    box-shadow: 0px 0px 4px 4px rgba(0,0,0,0.03);
                    border-radius: 1vw;
                    color: #FFFFFF;
                    border: none;
                    cursor: pointer;
                }
            }
        }
    }
    .project_title {
        display: flex;
        width: 90vw;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 5vw;
        margin: 0 auto;
        .project_left {
            // min-width: 38vw;
            height: 8vw;
            border-radius: 0.9vw 0 0 0.9vw;
            color: #FFFFFF;
            display: flex;
            align-items: center;
            position: relative;
            background-color: #1CABD9;

            p {
                padding-left: 3vw;
                position: relative;
                z-index: 5;
                font-size: 4vw;
            }

            sub {
                position: relative;
                z-index: 5;
                font-size: 1vw;
                bottom: 0.5vw;
            }

            .icon1 {
                // width: 38vw;
                position: absolute;
                height: 8vw;
                right: -6vw;
                bottom: 0;
            }

            .icon2 {
                width: 14vw;
                position: absolute;
                height: 5vw;
                bottom: -1vw;
                right: -8.5vw;
            }
        }
    }
}
</style>